package com.easyj.admin.sys.service;

import java.util.List;
import com.easyj.base.exception.EasyjException;
import com.easyj.base.common.page.Page;
import com.easyj.admin.db.model.Group;
import com.easyj.admin.db.model.GroupUser;
import com.easyj.admin.db.model.User;

public interface GroupService {

	public Page<Group> findPage(Group filter);

   	public List<Group> findList(Group filter);
		
    public long count(Group filter);

	public Group findById(Long id);

	public int  insertEntity(Group entity) throws EasyjException;
	
	public int  updateEntity(Group entity) throws EasyjException;

	public int  deleteById(Long id) throws EasyjException;

    public List<User> findUsersByGroupCode(String groupCode);
	
	public List<User> findUsersByGroupId(Long groupId);
	
	public int addGroupUsers(List<GroupUser> records);
	
	public int deleteGroupUser(GroupUser record);
}
